[BLKTAP]: Kill duplicate fast_flush_area call
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 20 Oct 2006 08:22:58 +0000 (09:22 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 20 Oct 2006 08:22:58 +0000 (09:22 +0100)
The dispatch_rw_block_io may call fast_flush_area twice if
create_lookup_pte_addr fails (there is a flush call at fail_flush
already).  The second call simply causes warnings to be printed
on the console.  This patch removes the duplicate call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c

index 8b5a4f7f9d52300801eae314400f3ec7e47bd8a8..a7e5037d72654e9782db16b9c8741f72c4380746 100644 (file)
@@ -1195,8 +1195,6 @@ static void dispatch_rw_block_io(blkif_t *blkif,
                                             uvaddr, &ptep);
                if (ret) {
                        WPRINTK("Couldn't get a pte addr!\n");
-                       fast_flush_area(pending_req, pending_idx, usr_idx, 
-                                       blkif->dev_num);
                        goto fail_flush;
                }